using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomPropertyDrawer(typeof(EnumMaskFieldAttribute))]
public class EnumMaskFieldAttributeDrawer : PropertyDrawer
{
	public override void OnGUI(Rect _position, SerializedProperty _property, GUIContent _lable)
	{
		EnumMaskFieldAttribute enumMask = attribute as EnumMaskFieldAttribute;
		_property.intValue = EditorGUI.MaskField(_position, enumMask.propertyName, _property.intValue, _property.enumDisplayNames);
	}
}
